package com.accounting.client.remote.enumeration;

import java.util.List;

import corelib.client.CollectionUtil;

public class OrderStatues {
	
	 public final static int Pending    = 0;
     public final static int Shipping   = 20;
     public final static int Complete   = 30;
     public final static int Cancelled  = 40;
     public final static int Other      = 99;
     public final static List<Integer> All = CollectionUtil.newArrayList(Other,Pending,Shipping,Complete,Cancelled);
     
     public static String getName(int status) {
    	 switch(status){
	    	 case Pending	 : return "未处理";
	    	 case Shipping   : return "运输中";
	    	 case Complete	 : return "已完成";
	    	 case Cancelled	 : return "取消";
	    	 case Other	 	 : return "其他";
	    	 default		 : return "未处理";
    	 }
     }
     
     
}
